﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SARD.Aux_Forms
{
    public partial class variablesize : Form
    {
        int x, y;


        /// <summary>
        /// Shows a window allowing the user to insert the desired size (variable).
        /// </summary>
        public variablesize()
        {
            InitializeComponent();
        }

        public int returnsizex() 
        {
            return x;
        }

        public int returnsizey()
        {
            return y;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.x = Convert.ToInt32(textBox1.Text);
            this.y = Convert.ToInt32(textBox2.Text);
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
